<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!--区域-->
    <div id="app"> 
        <p v-text='username' ></p>
        <p>性别：{{ gender }} </p>
        <hr>
        <div v-html='info'></div>
    </div>

    <!--引入-->
    <script src="./lib/vue-2.6.12.js"></script>

    <!--创建实例对象-->
    <script>
        const vm = new Vue({
            el: '#app',
            data: {
                username: 'zhangsan',
                gender:'女',
                info: '<h1>你好</h1>'
            }
        })
    </script>
</body>
</html>